﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YYSPlayChess.Model
{
    public class Team
    {
        public List<TeamMember> TeamMembers { get; set; }

        public int EnergyValue { get; set; }

        public int RecoveryProgress { get; set; }

        public List<TeamState> States { get; set; }

        public Team()
        {
            TeamMembers = new List<TeamMember>();
        }

        public bool AddTeamMenber(TeamMember teamMember)
        {
            if (TeamMembers.Count >= 5)
            {
                return false;
            }
            TeamMembers.Add(teamMember);
            return true;
        }
    }
}
